A small update to enable passing extra parameters with the request#12
Open
maimairel wants to merge 1 commit intoStanScates:masterfrom
maimairel:patch-1
Open
A small update to enable passing extra parameters with the request#12maimairel wants to merge 1 commit intoStanScates:masterfrom maimairel:patch-1
maimairel wants to merge 1 commit intoStanScates:masterfrom
maimairel:patch-1
Conversation
I'm integrating a slightly modified version of your tweet-js php script into Wordpress. The PHP script will then be able to fetch the API keys from the Wordpress options. The change in the JS file I made is to accommodate Wordpress AJAX requests that needs an extra 'action' parameter. Thanks :)
|
Unfortunately this doesn't help me. I need to find a way to include my theme options in index.php file as StanScates suggested... This is the easiest way. // get all theme options include (TEMPLATEPATH . '/framework/theme-files.php'); // this will get global variables from theme options But the problem is that my theme_get_option function for every field (consumer key, consumer secret and so on) is not recognized. Regards Anyway thanks a lot for your answer and time. |
|
Well finally I found the solution... For those who are trying to integrate Tweet.js-Mod with WP and get the 4 key’s from theme options… Hope this helps and saves your itme… |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I'm integrating a slightly modified version of your tweet-js php script into Wordpress. The PHP script will then be able to fetch the API keys from the Wordpress options.
The change in the JS file I made is to accommodate Wordpress AJAX requests that needs an extra 'action' parameter.
Thanks :)